package factory.demo1.service.impl;

import factory.demo1.entity.AwardInfo;
import factory.demo1.entity.ResponseResult;
import factory.demo1.service.IFreeGoods;

/**
 * 模拟打折券服务
 *
 * @author 1
 * @version 1.0
 * @description: TODO
 * @date 2024-08-28 13:39
 */
public class DiscountFreeGoods implements IFreeGoods {

    @Override
    public ResponseResult sendFreeGoods(AwardInfo awardInfo) {
        System.out.println("向用户发放一张打折券: " + awardInfo.getUid() + " , " + awardInfo.getAwardNumber());
        return new ResponseResult(200,"折扣券发放成功");
    }
}
